package com.szcinda.fitness.persistence;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
public class Coach extends BaseEntity {
    private String openId;
    private String avatarUrl;//微信头像
    @NotNull(message = "教练名称不能为空")
    private String name;
    @NotNull(message = "微信昵称不能为空")
    private String nickName;
    private String phone;
    private String fitnessPicSrc;//教练列表显示的健身封面图片
    private String skills;//多个技能以英文逗号隔开
    private String about;
    private String certificates;//多个证书以英文逗号隔开
}
